PREVIEW: Today you'll use Booleans and logical operators to verify whether a year is a leap year!

  • Click Run to see the program that you'll make. Run it a few times to enter different years into the console!
  • Take a look at the code in the code editor. There are many comments included here to explain everything!
  • Look at lines 20, 30, and 44. These variables are storing Boolean values.
  • Click Submit and Next to continue.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)